home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 11
/
Cream of the Crop 11-1.iso
/
disk
/
fhd210.zip
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1996-01-28
|
7KB
|
137 lines
@echo off
cls
echo
echo ┌─────────────── File_Handle ─────────────┐
echo │ │
echo │ === Hard Disk Installation === │
echo │ │
echo │ Copyright (c) 1995 A. van Andel, Hasoft │
echo │ All Rights Reserved │
echo │ │
echo │ This will install File_Handle on a dri- │
echo │ ve and directory of your choice. │
echo │ │
echo │ You should have entered something like: │
echo │ │
echo │ A:INSTALL A: C: FH │
echo │ │
echo │ There must be no '\' between the 'C:' │
echo │ and the directory name. The directory │
echo │ will be created if it doesn't exist. │
echo │ │
echo │ Press any key to CONTINUE, or Ctrl+C to │
echo │ ABORT the installation. │
echo └─────────────────────────────────────────┘
pause > nul
: If no drive letter is given, tell user how to do it.
if "%1" == "" goto FH_PATH
if "%2" == "" goto FH_PATH
if "%3" == "" goto FH_PATH
: First check if the directory %3 is already there.
: Offer NOT to overwrite if it's not an old File_Handle.
if NOT EXIST %2\%3\FH.EXE goto MAKE_FH
cls
echo
echo ┌─────────────────────── WARNING ───────────────────────┐
echo │ │
echo │ Program Already Exists! │
echo │ │
echo │ This could mean there is already an (older) version │
echo │ of this program on your disk; *BUT* it could also be │
echo │ another program by the same name. │
echo │ │
echo │ Press Ctrl+C if you *DON'T* want to to overwrite, or │
echo │ any other key if you want to install the new version. │
echo │ │
echo └───────────────────────────────────────────────────────┘
pause > nul
goto COPY_FH
: Create File_Handle's directory on the hard disk.
:MAKE_FH
cls
echo
echo ┌───────── MAKEDIR ─────────┐
echo │ │
echo │ Creating the directory... │
echo │ │
echo └───────────────────────────┘
md %2\%3 > nul
:COPY_FH
cls
echo
echo ┌───────────── COPY ─────────────┐
echo │ │
echo │ Copying File_Handle's files... │
echo │ │
echo └────────────────────────────────┘
echo >> %2\%3\INSTALL.LOG
echo INSTALL.BAT copied: >> %2\%3\INSTALL.LOG
echo >> %2\%3\INSTALL.LOG
copy %1*.* %2\%3 >> %2\%3\INSTALL.LOG
del %2\%3\install.bat >> %2\%3\INSTALL.LOG
echo INSTALL.BAT deleted >> %2\%3\INSTALL.LOG
: If the command failed, re-ask.
cls
if not exist %2\%3\FH.EXE goto FH_PATH
echo ┌────────── INSTALLATION COMPLETED ─────────┐
echo │ │
echo │ File_Handle is now installed on the disk. │
echo │ │
echo │ To evaluate File_Handle now, type: │
echo │ │
echo │ FH and [ENTER] │
echo │ │
echo ├───────────────────────────────────────────┤
echo │ Press PrintScreen to make a copy of this. │
echo │ │
echo │ Read the file REVIEW.TXT and the chapters │
echo │ "Quick Start" and "Introduction" in file │
echo │ FH_MANUA.TXT. F1 and Ctrl+F1 are long │
echo │ and short Help; Alt+Letter is TOP menu, │
echo │ Alt+Space BOTTOM menu. Change colors by │
echo │ Shift+Ctrl+F1 and then restarting FH.EXE. │
echo │ │
echo │ See READ_ME.1ST for "WHAT'S NEW" and last │
echo │ minute changes not printed in the manual. │
echo │ │
echo │ CONFIG.SYS must have at least "files=10"! │
echo │ │
echo └───────────────────────────────────────────┘
%2
cd \%3
goto FH_EXIT
:FH_ERROR
cls
echo
echo ┌─────────── ERROR ────────────┐
echo │ │
echo │ The installation has failed! │
echo │ │
echo └──────────────────────────────┘
:FH_PATH
echo
echo ┌───────────────────────── HELP ────────────────────────┐
echo │ │
echo │ To install File_Handle from A: to C:\FH, type: │
echo │ │
echo │ [A:]INSTALL A: C: FH (Notice: No '\' after C:!) │
echo │ │
echo │ If your floppy or hard disk has another drive letter, │
echo │ use it's letter instead. │
echo │ │
echo └───────────────────────────────────────────────────────┘
echo
:FH_EXIT